翻訳と辞書
Words near each other
・ Signalling theory
・ Signalman
・ Signalman (comics)
・ Signalman (disambiguation)
・ Signalman (rail)
・ Signalman (rank)
・ Signalness
・ Signalness Creek
・ Signalness Lake
・ SignalR
・ Signalrunners
・ Signals (Mal Waldron album)
・ Signals (Mallory Knox album)
・ Signals (Rush album)
・ Signals (Wayne Krantz album)
Signals and slots
・ Signals brigade
・ Signals for Tea
・ Signals intelligence
・ Signals intelligence by alliances, nations and industries
・ Signals intelligence in modern history
・ Signals intelligence operational platforms by nation
・ Signals Intelligence Service
・ Signals of Belief in Early England
・ Signals Over the Air
・ Signals Research and Development Establishment
・ Signals Through the Glass
・ Signals, Calls, and Marches
・ Signalway Antibody
・ Signarama


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Signals and slots : ウィキペディア英語版
Signals and slots
(詳細はQt for communication between objects which makes it easy to implement the Observer pattern while avoiding boilerplate code. The concept is that GUI widgets can send signals containing event information which can be received by other controls using special functions known as slots.
The signal/slot system fits well with the way Graphical User Interfaces are designed. Similarly, the signal/slot system can be used for other non-GUI usages, for example asynchronous I/O (including sockets, pipes, serial devices, etc.) event notification or to associate timeout events with appropriate object instances and methods or functions. It is easy to use and no registration/deregistration/invocation code need to be written, because Qt's Meta Object Compiler (MOC) automatically generates the needed infrastructure.
A commonly used metaphor is a spreadsheet. A spreadsheet has cells that observe the source cell(s). When the source cell is changed, the dependent cells are updated from the event.
==Alternative implementations==

There are some implementations of signal/slot systems based on C++ templates, which don't require the extra Meta Object Compiler, as used by Qt, such as libsigc++, (sigslot ), (nano-signal-slot ), (neosigslot ), (Signals ), (boost.signals2 ), (Cpp::Events ), (Platinum ) and (JBroadcaster ). CLI languages such as C# also supports a similar construct although with a different terminology and syntax: events play the role of signals, and delegates are the slots. Another implementation of signals exists for (ActionScript 3.0 ), inspired by C# events and signals/slots in Qt. Additionally, a delegate can be a local variable, much like a function pointer, while a slot in Qt must be a class member declared as such. Due to the language limitation, there isn't a common implementation for ANSI C, but an environment dependent method was given out, see (c-sigslot ), it has been tested on several platforms, notably the ARM C Compiler, but should support any standard ANSI C compiler. The C based GObject system also provides similar functionality via (GSignal ).

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Signals and slots」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.